package com.ms.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("audit_history")
public class Audit {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("music_id")
    private Integer musicId;

    @TableField("admin_id")
    private Integer adminId;

    private Integer status;

    private String feedback;

    @TableField(value = "audit_time", fill = FieldFill.INSERT)
    private LocalDateTime auditTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
